#include "subwidget.h"

SubWidget::SubWidget(QWidget *parent) : QWidget(parent)
{
    this->resize(300,300);
    button1.setText(QString("切换到主窗口"));
    button1.show();
    button1.move(20,100);
    button1.setParent(this);
    this->setWindowTitle(QString("子窗口"));
    connect(&button1,&QPushButton::clicked,this,&SubWidget::sendSolt);
}
void SubWidget::sendSolt()
{
    emit mysign();
    emit mysign(100,"我是一个带参数的信号");
}
